package com.zt.english.network

import com.zt.mvvm.network.AbstractRetrofits

class Retrofits private constructor() :AbstractRetrofits() {
    override fun baseUrl(): String = "https://www.baidu.com"

    override fun token(): String = ""
    override fun version(): String {
        return ""
    }

    override fun headers(): HashMap<String, String> {
        val map = HashMap<String,String>()
        return map
    }

    override fun clientId(): String  = "baidu_id"

    override fun clientSec(): String = "baidu_sec"
    /**
     * 线程安全的单列懒汉式
     */
    companion object{
        private val instance : Retrofits = Retrofits()
        @Synchronized
        fun getRetrofitsInstance(): Retrofits {
            return instance
        }
    }
}